package study.spring.core.ioc._2_inject_bean;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

/**
 * 用于演示 @Component 注解的对象如何被注入 ioc 容器
 */
@Component
public class ComponentBean {

  protected final Log log = LogFactory.getLog(getClass());

  public void describeSelf() {
    log.info("this ia a bean, use @Component annotation");
  }
}
